package sky.com.business
{
	import com.adobe.cairngorm.business.Responder;
	
	import sky.com.vo.User;
	
	public class LoginDelegate 
	{
		private var responder:Responder;
		public function LoginDelegate(resp:Responder)
		{
			responder=resp;
		}
		
		public function checkLogin(user:User):void{
			
			if(user.userName=="admin"){
				responder.onResult(true);
			
			}else{
				responder.onResult(false);
	
			}
		}
	}
}